package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * @author 张文接
 * @version 1.0
 * @createTime 2024/6/13 22:07
 */
public interface UserService extends IService<User> {
    void deductBalance(Long id, Integer money);
    List<User> queryUser(String name, Integer status, Integer maxBalance, Integer minBalance);
    PageDTO<UserVO> queryUsersPage(UserQuery userQuery);
    User queryUserById(Long id);
}
